package ch3;

import java.util.Arrays;
import java.util.Random;

public class RTest {

	public static void main(String[] args) {
		Random r = new Random();
		byte[] b = new byte[50];
		r.nextBytes(b);
		System.out.println(Arrays.toString(b));
		for (int i = 1; i <= 100; i++) {
			// 0-100之间
			System.out.println(r.nextInt(100));
		}

		// for (int i = 1; i <= 100; i++) {
		// System.out.println(r.nextInt());
		//
		// }
	}

}
